<html> 
<head> 
<script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=YahooDemo">
</script> 
<style type="text/css"> 
#mapContainer { 	 
  height: 400px; 	 
  width: 600px;
}
 </style>
</head> 
<body>

<div id="mapContainer"></div> 
<script type="text/javascript"> 
	var initialPoint = new YGeoPoint(10,-40);
	var map = new YMap(document.getElementById('mapContainer')); 
	map.addPanControl(); 
	map.addZoomLong(); 
	map.drawZoomAndCenter(initialPoint, 16); 
	//map.setMapType(YAHOO_MAP_HYB);

	var myFunction = function(_e,_c) {
		map.removeMarker("point");
		map.addMarker(_c, "point");
		map.getMarkerObject("point").addAutoExpand("Point");
	};

	YEvent.Capture(map,EventsList.MouseDoubleClick,myFunction);
	
</script> 

</body> 
</html>